﻿<div id="headerHomeLink">    
    <a href="/">Home</a>

</div>
<div id="headerSearch">
    <script language="javascript" type="text/javascript">
        function Search() {
            var searchBox = document.getElementById("searchTextBox");
            window.location = "/Home/Search/" + encodeURI(searchBox.value);
        }

        function runScript(e) {
            if (e.keyCode == 13) {
                var tb = document.getElementById("searchTextBox");
                Search();
                return false;
            }
        }

    </script>
    <button class="uiButton" id="searchButton" title="Search" onclick="Search();" value="Search">
        <span class="uiButtonContent">Search </span>
    </button>
    <div id="searchBox" class="searchBox-border">
        <label>
            <input id="searchTextBox" type="text" onkeypress="return runScript(event)" />
        </label>
    </div>
</div>
